package intf

import (
	"gitee.com/ljfirst/algo-go-sdk/src/data_structure/heap_stack_queue/queue"
)

/**
 * @author ljfirst
 * @version V1.0
 * @date 2023/6/25 20:51
 * @author-Email ljfirst@mail.ustc.edu.cn
 * @blogURL https://blog.csdn.net/ljfirst
 * @description queue
 * */
type QueueINTF interface {
	Offer(interface{}) // insert into queue
	Poll() interface{} // pop from queue
	Peak() interface{} // get the ahead value from queue
	Size() int
	Resize() // extension the capacity of the queue
	StructName() string
}

var QueueAssemble = map[string][]interface{}{
	"Queue": {
		&queue.ArrayQueue{},
		//&queue.ArrayDeQueue{},
		&queue.LinkedQueue{},
		queue.NewStackQueue(),
	},
}
